//
//  ReadTableViewCell.m
//  news
//
//  Created by dllo on 16/3/10.
//  Copyright © 2016年 imacbookair. All rights reserved.
//

#import "ReadTableViewCell.h"

@implementation ReadTableViewCell

#pragma mark - 初始化
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // 背景
        self.tupian = [[UIImageView alloc] init];
        //        _tupian.backgroundColor = [UIColor redColor];
        _tupian.layer.cornerRadius = 10;
        _tupian.clipsToBounds = YES;
        [self.contentView addSubview:_tupian];
        
        // 标题
        self.title = [[UILabel alloc] init];
        [_tupian addSubview:_title];
        _title.numberOfLines = 0;
        _title.textColor = [UIColor whiteColor];
        
        
        
    }
    return self;
}

#pragma mark - 布局

- (void)layoutSubviews
{
    [super layoutSubviews];
    _tupian.frame = CGRectMake(10, 10, self.contentView.frame.size.width - 20, 180);
    _title.frame = CGRectMake(10, 120, 335, 60);
}












- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
